import Vue from 'vue'
import VueRouter from 'vue-router'
import Test from '../views/Test.vue'
import detail from '../views/detail.vue'
import submit from '../views/submit.vue'
import pcDetail from '../views/pcDetail'
import pc_detail from '../views/pc_detail'
import error from '../views/error'
import pc from '../views/pc'
import screen from '../views/screen'

Vue.use(VueRouter)

const routes = [

  {
    path: '/pc_detail',
    name: 'pc_detail',
    component: pc_detail
  },
  {
    path: '/detail',
    name: 'detail',
    component: detail
  },
  {
    path: '/pcDetail',
    name: 'pcDetail',
    component: pcDetail
  },

  {
    path: '/submit',
    name: 'submit',
    component: submit
  },
  {
    path: '/error',
    name: 'error',
    component: error
  },
  {
    path: '/error',
    name: 'error',
    component: error
  },
  {
    path: '/pc',
    name: 'pc',
    component: pc
  },
  {
    path: '/screen',
    name: 'screen',
    component: screen
  },

  {
    path: '/',
    name: 'Test',
    component: Test
  }
]

const router = new VueRouter({
  routes
})

export default router
